package com.szr.leex.service.impl.user;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.szr.leex.dao.BaseDao;
import com.szr.leex.dao.user.LocalAuthDao;
import com.szr.leex.po.user.LocalAuth;
import com.szr.leex.service.impl.BaseServiceImpl;
import com.szr.leex.service.user.LocalAuthService;

/**
 * LocalAuth service impl
 * Created by WangChen on 2018/10/13 8:24.
 */
@Service
public class LocalAuthServiceImpl extends BaseServiceImpl<LocalAuth, String> implements LocalAuthService{

    @Autowired
    private LocalAuthDao localAuthDao;

    @Override
    public BaseDao<LocalAuth, String> getBaseDao() {
        return localAuthDao;
    }


    @Override
    public LocalAuth getByUserId(String userId) {
        return localAuthDao.findByUserId(userId);
    }

}
